home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 21 code / Dylan Listings / module-definitions.dyl < prev   
Encoding:
Text File  |  1995-01-16  |  555 b   |  20 lines  |  [TEXT/ttxt]

  1. module:    dylan-user
  2. language:  infix-dylan
  3. author:    Steve Strassmann, straz@apple.com
  4. copyright: This code is in the public domain
  5. version:   1.0b1 20-Nov-94
  6. comment:   code to accompany an article in Develop magazine, Feb-95
  7. title:     module definitions
  8.  
  9. define module studio
  10.     use dylan;
  11.     export <project>, <actor>, <script>, name, name-setter, profits;
  12. end module;
  13.  
  14. define module hollywood 
  15.     use dylan;
  16.     use studio, 
  17.         export: {name, profits};
  18. //        rename: {<project> => <production>};
  19.     export <movie>, <tv-show>, <videogame>, do-oscars;
  20. end module;